.container {
  min-height: calc(100vh - 64px - 48px);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.createButton {
  height: 40px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  border: none;
  transition: all 0.3s;
}

.createButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.searchInput {
  width: 300px;
}

.searchInput :global(.ant-input) {
  border-radius: 6px;
}

.table {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table :global(.ant-table-thead > tr > th) {
  background: #f8f9fa;
  font-weight: 600;
  color: #1f2937;
  padding: 16px;
}

.table :global(.ant-table-tbody > tr > td) {
  padding: 16px;
}

.indexCell {
  color: #666;
  font-weight: 500;
}

.nameCell {
  color: #1f2937;
  font-weight: 500;
}

.typeTag {
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
}

.timeCell {
  color: #666;
}

.actionCell {
  display: flex;
  gap: 8px;
}

.viewButton, .deleteButton {
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.pagination {
  margin-top: 16px;
}

/* Modal样式 */
:global(.ant-modal-content) {
  border-radius: 8px;
  overflow: hidden;
}

:global(.ant-modal-header) {
  background: #f8f9fa;
  padding: 16px 24px;
}

:global(.ant-modal-body) {
  padding: 24px;
}

:global(.ant-modal-footer) {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}

.buildProgress {
  padding: 24px 0;
}

.buildStatus {
  margin-top: 16px;
  text-align: center;
}

.statusText {
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.progressDetail {
  margin-top: 8px;
  color: #999;
  font-size: 14px;
}

.successIcon {
  font-size: 18px;
  color: #52c41a;
  animation: bounceIn 0.5s;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
  80% {
    opacity: 1;
    transform: scale(0.89);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 进度条样式优化 */
:global(.ant-progress-line) {
  width: 100% !important;
  margin-bottom: 0 !important;
}

:global(.ant-progress-text) {
  color: #666 !important;
}

:global(.ant-progress-status-active .ant-progress-bg) {
  position: relative;
  overflow: hidden;
}

:global(.ant-progress-status-active .ant-progress-bg::before) {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.15) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: progressShine 1.5s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 模态框样式优化 */
:global(.ant-modal-confirm-content) {
  margin-top: 0 !important;
  margin-left: 0 !important;
}

:global(.ant-modal-confirm-btns) {
  margin-top: 24px;
  text-align: center !important;
}

.dbConfigForm {
  position: relative;
}

.dbConfigTip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 6px;
  margin-bottom: 24px;
}

.tipIcon {
  font-size: 18px;
  line-height: 24px;
}

.tipContent {
  color: #1890ff;
  font-size: 14px;
  line-height: 1.5;
}

.testButton {
  margin-bottom: 16px;
}

.connectSuccess {
  color: #52c41a;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
